/*    */ package com.iris.egrant.orm.hibernate;
/*    */ 
/*    */ import java.util.List;
/*    */ import org.slf4j.Logger;
/*    */ import org.slf4j.LoggerFactory;
/*    */ import org.springframework.util.CollectionUtils;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class HqlUtils
/*    */ {
/* 13 */   protected static final Logger LOG = LoggerFactory.getLogger(HqlUtils.class);
/*    */   
/*    */   public static String getHqlparams(List<Long> idList) {
/* 16 */     StringBuffer sb = new StringBuffer();
/* 17 */     if (CollectionUtils.isEmpty(idList)) {
/* 18 */       return null;
/*    */     }
/* 20 */     for (int i = 0; i < idList.size(); i++) {
/* 21 */       sb.append("?").append(",");
/*    */     }
/* 23 */     sb.deleteCharAt(sb.length() - 1);
/* 24 */     return sb.toString();
/*    */   }
/*    */ }


/* Location:              D:\文件kjt\WEB-INF\lib\egrant-core-2.2.20240205.1659.jar!\com\iris\egrant\orm\hibernate\HqlUtils.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */